package com.flick.student.service;

import com.flick.po.Student;
import com.flick.student.dao.StudentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by flick on 2017/4/27.
 */
@Service
public class StudentServ {
    @Autowired
    StudentRepository repository;

    public List<Student> list(){
        return repository.findAll();
    }
    public Student get(String id){
        return repository.findOne(id);
    }
}
